﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using nERP.Model.Po;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.Po.BuyReturnDetailVMs
{
    public partial class BuyReturnDetailBatchVM : BaseBatchVM<BuyReturnDetail, BuyReturnDetail_BatchEdit>
    {
        public BuyReturnDetailBatchVM()
        {
            ListVM = new BuyReturnDetailListVM();
            LinkedVM = new BuyReturnDetail_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class BuyReturnDetail_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._BuyReturnDetail._Seq")]
        public int? Seq { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._BuyReturn")]
        public string BuyReturnId { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._BuyInWarehouseDetail")]
        public string BuyInWarehouseDetailId { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._Buy")]
        public string BuyId { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._BuyDatail")]
        public string BuyDatailId { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._Goods")]
        public string GoodsId { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._GoodsName")]
        public string GoodsName { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._GoodsSpec")]
        public string GoodsSpec { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._GoodsUnit")]
        public string GoodsUnit { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._ReturnNumber")]
        public decimal? ReturnNumber { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._UnitPrice")]
        public decimal? UnitPrice { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._DiscountPrice")]
        public decimal? DiscountPrice { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._TotalPrice")]
        public decimal? TotalPrice { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._TaxRate")]
        public decimal? TaxRate { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._TaxUnitPrice")]
        public decimal? TaxUnitPrice { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._TaxPrice")]
        public decimal? TaxPrice { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._TotalTaxPrice")]
        public decimal? TotalTaxPrice { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._Remark")]
        public string Remark { get; set; }
        [Display(Name = "_Model._BuyReturnDetail._Status")]
        public dStatusTypeEnum? Status { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}